package user

import "5title_gin/internal/model"

// UserModel 用户表
type UserModel struct {
	model.Models
	Username  string `gorm:"size:16" json:"username"`
	Nickname  string `gorm:"size:32" json:"nickname"`
	Password  string `gorm:"size:64" json:"-"`
	Email     string `gorm:"size:64" json:"email"`
	Mobile    string `gorm:"size:16" json:"mobile"`
	Avatar    string `gorm:"size:1000" json:"avatar"`
	Sex       uint   `json:"sex"`
	Status    uint   `json:"status"`
	DeptID    uint   `json:"deptID"`
	RoleID    uint   `json:"roleID"`
	LastLogin string `gorm:"size:64" json:"last_login"`
}

type UserVo struct {
	UserModel
	DeptName string `json:"deptName"`
}

type UserBo struct {
	UserModel
	DeptName string `json:"deptName"`
	RoleName string `json:"roleName"`
}
type LoginRequest struct {
	Username         string `json:"username" binding:"required" label:"用户名" `
	Password         string `json:"password" binding:"required" label:"密码"`
	RememberPassword bool   `json:"rememberPassword" label:"记住密码"`
}
